<template>
  <div class="main">
    <div class="dashboard-text mb-20">欢迎！</div>
    <div class="dashboard-text">当前账号: {{ name }}</div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import { userGetData } from '@/api/user'
export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name'
    ])
  },
  created() {
    userGetData().then(res => {
      console.log(res)
    })
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    background-color: #fff;

  }

  // &-text {
  //   font-size: 30px;

  // }
}
</style>
